package done;

import javax.swing.JButton;
import javax.swing.JScrollPane;
import javax.swing.JPanel;
import java.awt.GridBagLayout;
import java.awt.Dimension;

public class testscroll extends JScrollPane {

	private static final long serialVersionUID = 1L;
	private JPanel jPanel = null;

	/**
	 * This is the default constructor
	 */
	public testscroll() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(300, 242);

		this.setViewportView(getJPanel());
	}

	/**
	 * This method initializes jPanel	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJPanel() {
		if (jPanel == null) {
			jPanel = new JPanel();
			jPanel.setLayout(null);
			final JButton lol=new JButton("lol");
			lol.setBounds(10, 10,50,50);
			lol.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					lol.setBounds(10,20,100,100);
				}
			});
			jPanel.add(lol);
		}
		return jPanel;
	}

}  //  @jve:decl-index=0:visual-constraint="44,32"
